package com.sist.thread;

public class ThreadEx extends Thread
{
	private String msg;
	
	public ThreadEx( String msg )
	{
		super();
		this.msg = msg;
	}
	
	public void run()
	{
		for ( int i=0; i<100; i++ )
		{
			try
			{
				Thread.sleep( 50 );
			} 
			catch ( InterruptedException e )
			{
				e.printStackTrace();
			}
			System.out.println( msg );
		}
	}
}
